Programming Basics
Data Representation Character Coding Exercise
These exercises are designed to evaluate your knowledge and comprehension of the character coding schemes used in a computer. It is expected that you should be able to correctly answer all or nearly all of the questions and problems presented. You should do these exercises by yourself. This exercise represents the most foundational and elementary information to be mastered by anyone involved with computer programming.
1. Code the following characters into their ASCII binary format.
a. |
X |
b. |
a |
c. |
p |
|||
d. |
& |
e. |
? |
f. |
LF |
2. Decode the following ASCII binary formatted characters.
a. |
00111101 |
b. |
00001101 |
c. |
01111111 |
|||
d. |
01101010 |
e. |
01001011 |
f. |
01011110 |
3. What is the hexadecimal code for the following characters.
T |
|
s |
|
3 |
|
& |
|
FF |
4. What is the character for the following decimal numbers.
67 |
|
73 |
|
36 |
|
32 |
|
100 |
5. What do the following control characters stand for.
DEL |
|
ESC |
|
FF |
|
LF |
|
BEL |
|
CR |